package cn.com.bdqn.service.impl;

import cn.com.bdqn.dao.SalChanceDao;
import cn.com.bdqn.entity.SalChance;
import cn.com.bdqn.service.SalChanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SalChanceServiceImpl implements SalChanceService {

    @Autowired
    private SalChanceDao dao;

    @Override
    public List<SalChance> queryByLike(SalChance salChance) {
        return dao.queryByLike(salChance);
    }

    @Override
    public int delByChcId(Long chcId) {
        return dao.delByChcId(chcId);
    }

    @Override
    public int addSalChance(SalChance salChance) {
        return dao.addSalChance(salChance);
    }

    @Override
    public int updateSalChance(SalChance salChance) {
        return dao.updateSalChance(salChance);
    }

    @Override
    public int assign(SalChance salChance) {
        return dao.assign(salChance);
    }

    @Override
    public SalChance queryById(SalChance salChance) {
        return dao.queryById(salChance);
    }

    @Override
    public int devSuccess(Long chcId) {
        return dao.devSuccess(chcId);
    }

    @Override
    public int devFail(Long chcId) {
        return dao.devFail(chcId);
    }
}
